HipOrthoCamera

Orthographic Projection camera. A good resource to understand how orthographic projection works follows on: http://learnwebgl.brown37.net/08_projections/projections_ortho.html

But basically: 1. Translate the center to the origin of the screen(top left) 2. Scale the screen size by 2 (remember that we lost the -1..0 range) 3. Alternate the handeness if necessary

Constructors

this
this()
Undocumented in source.

Members

Functions

scale
void scale(float x, float y, float z)
Undocumented in source. Be warned that the author may not have intended to support it.
setPosition
void setPosition(float x, float y, float z)
Undocumented in source. Be warned that the author may not have intended to support it.
setScale
void setScale(float x, float y, float z)
Undocumented in source. Be warned that the author may not have intended to support it.
setSize
void setSize(uint width, uint height)
Undocumented in source. Be warned that the author may not have intended to support it.
translate
void translate(float x, float y, float z)
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.
updateFromViewport
void updateFromViewport()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

x
float x [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
y
float y [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
z
float z [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

proj
Matrix4 proj;
Undocumented in source.
view
Matrix4 view;
Undocumented in source.
viewProj
Matrix4 viewProj;
Undocumented in source.
zfar
float zfar;
Undocumented in source.
znear
float znear;
Undocumented in source.

Meta